package com.cloudfun.campusshare.common.model.vo;


import com.cloudfun.campusshare.common.constant.BaseConstant;
import com.cloudfun.campusshare.util.EnumString;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author linyangping
 * @Title: 设备控制vo
 * @date 2019/11/6 下午2:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "滚筒洗衣机操作VO")
public class RollerWasherOpVO {

    @ApiModelProperty(value = "设备识别码")
    @NotEmpty(message = "设备识别码不能为空")
    @Length(max = 40, message = "设备识别码过长，限制40个字")
    @JsonProperty("deviceId")
    private String imei;

    @ApiModelProperty(value = "设备类型")
    @NotEmpty(message = "设备类型不能为空")
    @EnumString(values = {BaseConstant.GXY8_NAME, BaseConstant.GXY13_5_NAME}, message = "设备类型错误")
    private String deviceType;

    @ApiModelProperty(value = "商户订单id")
    @NotEmpty(message = "商户订单id不能为空")
    @Length(max = 50, message = "订单id过长，限制50个字")
    private String orderId;

    @ApiModelProperty(value = "洗涤类型")
    @NotEmpty(message = "洗涤类型不能为空")
    private String washType;

    @ApiModelProperty(value = "是否添加洗衣液")
    private boolean addLaundryDetergent = false;
}
